package cn.itsource.api;

import cn.itsource.factory.LoginFeignClientFactory;
import cn.itsource.pojo.domain.Login;
import cn.itsource.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

@FeignClient(value = "it-fccar-service-uaa",fallbackFactory = LoginFeignClientFactory.class)
public interface LoginFeignClient {
    @PostMapping("/manager/login/create")
    JSONResult create(@RequestBody @Valid Login login);
}
